package com.xyy.saas.payment.service.impl;

import com.xyy.saas.payment.dao.mapper.ECPopGMVMapper;
import com.xyy.saas.payment.dao.model.ECPopGMV;
import com.xyy.saas.payment.service.ECPopGMVService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

@Service
public class ECPopGMVServiceImpl implements ECPopGMVService {

    @Autowired
    @Qualifier("ECPopGMVMapper")
    private ECPopGMVMapper ecPopGMVMapper;

    @Override
    public ECPopGMV queryByBusinessId(String businessId) {
        if(StringUtils.isEmpty(businessId)) {
            return null;
        }
        return ecPopGMVMapper.queryByBusinessId(businessId);
    }
}
